home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 009a / snpd0493.zip / PRTOGGLE.C < prev    next >
C/C++ Source or Header  |  1993-04-05  |  505b  |  22 lines

  1. .I 22 16
  2. #include <conio.h>
  3. #include <io.h>
  4.  
  5. #if !defined(__ZTC__) && !defined(__TURBOC__)
  6.  #define MK_FP(seg,offset) \
  7.         ((void far *)(((unsigned long)(seg)<<16) | (unsigned)(offset)))
  8.  #define peek(s,o) (*((unsigned far *)(MK_FP(s,o))))
  9.  #define poke(s,o,w) (*((unsigned far *)(MK_FP(s,o)))=(w))
  10. #endif
  11.  
  12. #define SUCCESS 0
  13. #define ERROR -1
  14.  
  15. static unsigned head, tail, start, end;
  16. static int idx = 0;
  17. static unsigned keystack[16][2];
  18. .D 23 1
  19. .I 66 1
  20. int prtoggle(void)
  21. .D 67 1
  22.